package com.wwwarehouse.common.bean;

import java.io.Serializable;

/**
 * Created by Jackie on 2017/10/24.
 * 消息中心推送过来的消息
 */

public class MessageCenterPushBean implements Serializable {
    /**
     * msg : {"receiverId":"10002121","messageType":"notice","feature":{},"messageTypeValue":"公告","messageId":"12125700000002012","messageTitle":"test2_公告_cj","ownerId":"10001356","messageContent":"这是一个公告","status":"1"}
     * type : PUSH_MESSAGE
     */

    private MsgBean msg;
    private String type;

    public MsgBean getMsg() {
        return msg;
    }

    public void setMsg(MsgBean msg) {
        this.msg = msg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static class MsgBean implements Serializable {
        /**
         * receiverId : 10002121
         * messageType : notice
         * feature : {}
         * messageTypeValue : 公告
         * messageId : 12125700000002012
         * messageTitle : test2_公告_cj
         * ownerId : 10001356
         * messageContent : 这是一个公告
         * status : 1
         */

        private String receiverId;
        private String messageType;
        private FeatureBean feature;
        private String messageTypeValue;
        private String messageId;
        private String messageTitle;
        private String ownerId;
        private String messageContent;
        private String status;

        public String getReceiverId() {
            return receiverId;
        }

        public void setReceiverId(String receiverId) {
            this.receiverId = receiverId;
        }

        public String getMessageType() {
            return messageType;
        }

        public void setMessageType(String messageType) {
            this.messageType = messageType;
        }

        public FeatureBean getFeature() {
            return feature;
        }

        public void setFeature(FeatureBean feature) {
            this.feature = feature;
        }

        public String getMessageTypeValue() {
            return messageTypeValue;
        }

        public void setMessageTypeValue(String messageTypeValue) {
            this.messageTypeValue = messageTypeValue;
        }

        public String getMessageId() {
            return messageId;
        }

        public void setMessageId(String messageId) {
            this.messageId = messageId;
        }

        public String getMessageTitle() {
            return messageTitle;
        }

        public void setMessageTitle(String messageTitle) {
            this.messageTitle = messageTitle;
        }

        public String getOwnerId() {
            return ownerId;
        }

        public void setOwnerId(String ownerId) {
            this.ownerId = ownerId;
        }

        public String getMessageContent() {
            return messageContent;
        }

        public void setMessageContent(String messageContent) {
            this.messageContent = messageContent;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public static class FeatureBean implements Serializable {
            // 公共字段
            private String cardUkid;
            private String operationType;
            private String operationName;
            private String status;

            // 调整契约字段
            private String terminatedContract;
            private String contractUkid;

            // 更多字段，自行添加

            public String getCardUkid() {
                return cardUkid;
            }

            public void setCardUkid(String cardUkid) {
                this.cardUkid = cardUkid;
            }

            public String getOperationType() {
                return operationType;
            }

            public void setOperationType(String operationType) {
                this.operationType = operationType;
            }

            public String getOperationName() {
                return operationName;
            }

            public void setOperationName(String operationName) {
                this.operationName = operationName;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public String getTerminatedContract() {
                return terminatedContract;
            }

            public void setTerminatedContract(String terminatedContract) {
                this.terminatedContract = terminatedContract;
            }

            public String getContractUkid() {
                return contractUkid;
            }

            public void setContractUkid(String contractUkid) {
                this.contractUkid = contractUkid;
            }
        }
    }
}
